From: Richard M. Stallman Date: Sun, 24 Nov 2002 19:02:14 +0000 (+0000) Subject: (mail-signature): Handle case where X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~29528 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a33b93c446b75921402c42595113ac04ec006bf7;p=emacs.git (mail-signature): Handle case where value of mail-signature is a string. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 89154b44934..ebf2f9afc90 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -1259,7 +1259,7 @@ external program defined by `sendmail-program'." (goto-char (mail-text-start))) (defun mail-signature (&optional atpoint) - "Sign letter with contents of the file `mail-signature-file'. + "Sign letter with signature based on `mail-signature-file'. Prefix arg means put contents at point." (interactive "P") (save-excursion @@ -1269,8 +1269,10 @@ Prefix arg means put contents at point." (end-of-line) (or atpoint (delete-region (point) (point-max))) - (insert "\n\n-- \n") - (insert-file-contents (expand-file-name mail-signature-file)))) + (if (stringp mail-signature) + (insert mail-signature) + (insert "\n\n-- \n") + (insert-file-contents (expand-file-name mail-signature-file))))) (defun mail-fill-yanked-message (&optional justifyp) "Fill the paragraphs of a message yanked into this one.